projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a45b1d1
)
gdkwindow-x11: Ensure that extended update counter is freed
author
Ben Gamari
<ben@smart-cactus.org>
Tue, 5 Jan 2016 23:36:21 +0000
(
00:36
+0100)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 8 Jan 2016 02:13:42 +0000
(21:13 -0500)
I believe this lead to rampant leakage of SyncCounters by
gnome-terminal.
https://bugzilla.gnome.org/show_bug.cgi?id=760188
gdk/x11/gdkwindow-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkwindow-x11.c
b/gdk/x11/gdkwindow-x11.c
index 157ec3a888d7065351e507bbb010824170f4fbbc..9f189ad6265845b57538a89bbd3a85863ae7b80d 100644
(file)
--- a/
gdk/x11/gdkwindow-x11.c
+++ b/
gdk/x11/gdkwindow-x11.c
@@
-1297,7
+1297,10
@@
gdk_toplevel_x11_free_contents (GdkDisplay *display,
{
XSyncDestroyCounter (GDK_DISPLAY_XDISPLAY (display),
toplevel->update_counter);
+ XSyncDestroyCounter (GDK_DISPLAY_XDISPLAY (display),
+ toplevel->extended_update_counter);
toplevel->update_counter = None;
+ toplevel->extended_update_counter = None;
toplevel->current_counter_value = 0;
}